﻿public partial class Shared_UserControl_InfoPanel : AdminBaseUserControl
{
    protected override void OnLoad(System.EventArgs e)
    {
        successPanel.Visible = false;
        succli.Text = string.Empty;
        base.OnLoad(e);
    }

    public void AddErrorInfo(string message)
    {
        Validator.AddCustomError(errorPanel, message);
    }

    public void AddSuccessInfo(string message)
    {
        successPanel.Visible = true;
        succli.Text = message;
        AddScriptM(string.Format("$('#{0}').delay(2000).hide('slow');", successPanel.ClientID));
    }
}